package com.examination.mlib.baseold;

import android.app.Application;
import android.content.Context;

import com.alibaba.android.arouter.launcher.ARouter;

public abstract
class ModulesBaseApp extends Application {



    private static Context mContext;

    public static Context getContext() {
        return mContext;
    }

    @Override
    public void onCreate() {
        mContext = this;
        super.onCreate();
        onCreateModuleApp(this);
    }

    public abstract void onCreateModuleApp(Application application);

    @Override
    public void onTerminate() {
        super.onTerminate();
        ARouter.getInstance().destroy();
    }
}
